﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200043F RID: 1087
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnhanceRogueBuffScRsp : IMessage<EnhanceRogueBuffScRsp>, IMessage, IEquatable<EnhanceRogueBuffScRsp>, IDeepCloneable<EnhanceRogueBuffScRsp>, IBufferMessage
	{
		// Token: 0x17000DFF RID: 3583
		// (get) Token: 0x060030DF RID: 12511 RVA: 0x00086AC5 File Offset: 0x00084CC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnhanceRogueBuffScRsp> Parser
		{
			get
			{
				return EnhanceRogueBuffScRsp._parser;
			}
		}

		// Token: 0x17000E00 RID: 3584
		// (get) Token: 0x060030E0 RID: 12512 RVA: 0x00086ACC File Offset: 0x00084CCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnhanceRogueBuffScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000E01 RID: 3585
		// (get) Token: 0x060030E1 RID: 12513 RVA: 0x00086ADE File Offset: 0x00084CDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnhanceRogueBuffScRsp.Descriptor;
			}
		}

		// Token: 0x060030E2 RID: 12514 RVA: 0x00086AE5 File Offset: 0x00084CE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnhanceRogueBuffScRsp()
		{
		}

		// Token: 0x060030E3 RID: 12515 RVA: 0x00086AF0 File Offset: 0x00084CF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnhanceRogueBuffScRsp(EnhanceRogueBuffScRsp other) : this()
		{
			this.rogueBuff_ = ((other.rogueBuff_ != null) ? other.rogueBuff_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.isSuccess_ = other.isSuccess_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060030E4 RID: 12516 RVA: 0x00086B48 File Offset: 0x00084D48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnhanceRogueBuffScRsp Clone()
		{
			return new EnhanceRogueBuffScRsp(this);
		}

		// Token: 0x17000E02 RID: 3586
		// (get) Token: 0x060030E5 RID: 12517 RVA: 0x00086B50 File Offset: 0x00084D50
		// (set) Token: 0x060030E6 RID: 12518 RVA: 0x00086B58 File Offset: 0x00084D58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuff RogueBuff
		{
			get
			{
				return this.rogueBuff_;
			}
			set
			{
				this.rogueBuff_ = value;
			}
		}

		// Token: 0x17000E03 RID: 3587
		// (get) Token: 0x060030E7 RID: 12519 RVA: 0x00086B61 File Offset: 0x00084D61
		// (set) Token: 0x060030E8 RID: 12520 RVA: 0x00086B69 File Offset: 0x00084D69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000E04 RID: 3588
		// (get) Token: 0x060030E9 RID: 12521 RVA: 0x00086B72 File Offset: 0x00084D72
		// (set) Token: 0x060030EA RID: 12522 RVA: 0x00086B7A File Offset: 0x00084D7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsSuccess
		{
			get
			{
				return this.isSuccess_;
			}
			set
			{
				this.isSuccess_ = value;
			}
		}

		// Token: 0x060030EB RID: 12523 RVA: 0x00086B83 File Offset: 0x00084D83
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnhanceRogueBuffScRsp);
		}

		// Token: 0x060030EC RID: 12524 RVA: 0x00086B94 File Offset: 0x00084D94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnhanceRogueBuffScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.RogueBuff, other.RogueBuff) && this.Retcode == other.Retcode && this.IsSuccess == other.IsSuccess && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060030ED RID: 12525 RVA: 0x00086BF4 File Offset: 0x00084DF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueBuff_ != null)
			{
				num ^= this.RogueBuff.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.IsSuccess)
			{
				num ^= this.IsSuccess.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060030EE RID: 12526 RVA: 0x00086C62 File Offset: 0x00084E62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060030EF RID: 12527 RVA: 0x00086C6A File Offset: 0x00084E6A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060030F0 RID: 12528 RVA: 0x00086C74 File Offset: 0x00084E74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueBuff_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.RogueBuff);
			}
			if (this.IsSuccess)
			{
				output.WriteRawTag(64);
				output.WriteBool(this.IsSuccess);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060030F1 RID: 12529 RVA: 0x00086CEC File Offset: 0x00084EEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueBuff_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueBuff);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.IsSuccess)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060030F2 RID: 12530 RVA: 0x00086D50 File Offset: 0x00084F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnhanceRogueBuffScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueBuff_ != null)
			{
				if (this.rogueBuff_ == null)
				{
					this.RogueBuff = new RogueBuff();
				}
				this.RogueBuff.MergeFrom(other.RogueBuff);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.IsSuccess)
			{
				this.IsSuccess = other.IsSuccess;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060030F3 RID: 12531 RVA: 0x00086DCC File Offset: 0x00084FCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060030F4 RID: 12532 RVA: 0x00086DD8 File Offset: 0x00084FD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 42U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.IsSuccess = input.ReadBool();
						}
					}
					else
					{
						if (this.rogueBuff_ == null)
						{
							this.RogueBuff = new RogueBuff();
						}
						input.ReadMessage(this.RogueBuff);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001341 RID: 4929
		private static readonly MessageParser<EnhanceRogueBuffScRsp> _parser = new MessageParser<EnhanceRogueBuffScRsp>(() => new EnhanceRogueBuffScRsp());

		// Token: 0x04001342 RID: 4930
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001343 RID: 4931
		public const int RogueBuffFieldNumber = 5;

		// Token: 0x04001344 RID: 4932
		private RogueBuff rogueBuff_;

		// Token: 0x04001345 RID: 4933
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04001346 RID: 4934
		private uint retcode_;

		// Token: 0x04001347 RID: 4935
		public const int IsSuccessFieldNumber = 8;

		// Token: 0x04001348 RID: 4936
		private bool isSuccess_;
	}
}
